import string, os
import datetime

print 'Running MemBandwith...'
size = 512
iter = 1000000
trial = 4
now = datetime.datetime.now()
filename = "MemBandwidth_%s.txt" % now.strftime("%Y-%m-%d-%H-%M")
for i in range(trial) :
	cmd = "MemBandwidth >> %s" % (filename)
	os.popen(cmd)
	f = open(filename, 'a')
	f.write("\n")
	f.close()

print 'Done! Check results in %s' % filename